package com.yj.cmp.sdk.fusioncompute.compute.vm.dto;

import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author li_chao
 * @date 2021-09-01 15:42
 */
@NoArgsConstructor
@Data
public class VmNetworkCardDto {

    @SerializedName("name")
    private String name;

    @SerializedName("portGroupUrn")
    private String portGroupUrn;

    @SerializedName("mac")
    private String mac;

    @SerializedName("sequenceNum")
    private Integer sequenceNum;

    @SerializedName("virtIo")
    private Integer virtIo;

    @SerializedName("portId")
    private String portId;

    @SerializedName("nicConfig")
    private List<NicConfigDTO> nicConfig;
    @SerializedName("enableSecurityGroup")
    private Boolean enableSecurityGroup;
    @SerializedName("securityGroupId")
    private Long securityGroupId;

    @NoArgsConstructor
    @Data
    public static class NicConfigDTO {

        @SerializedName("vringbuf")
        private Integer vringbuf;

        @SerializedName("queues")
        private Integer queues;
    }

}